<template>
  <div>
    <h2>父组件</h2>
    <Child :message="parentMsg" />
  </div>
</template>

<script>
import Child from './child.vue';

export default {
  components: {Child},
  data() {
    return {
      parentMsg: '这是来自父组件的消息'
    };
  }
};
</script>
